//
//  DJHttpManager.h
//  DualJoy
//
//  Created by lijunge on 2019/11/18.
//  Copyright © 2019 lijunge. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^DJHttpManagerSuccess)(NSDictionary *result);
typedef void(^DJHttpManagerFailure)(NSDictionary *error);

@interface DJHttpManager : NSObject

+ (void)post:(NSString *)urlStr params:(NSDictionary *)params success:(DJHttpManagerSuccess)success failure:(DJHttpManagerFailure)failure;
+ (void)get:(NSString *)urlStr params:(NSDictionary *)params success:(DJHttpManagerSuccess)success failure:(DJHttpManagerFailure)failure;

@end

NS_ASSUME_NONNULL_END
